import 'package:star_author/env/env_config.dart';
import 'package:star_author/utils/common_util/shared_preferences/sp_util.dart';
import 'package:flutter/material.dart';
// import 'package:fluwx/fluwx.dart';

import 'config/app.dart';
import 'init_app.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  bool env = SpUtil.getBool(EnvConfig.local_key, defValue: true) ?? true;
  //是否是测试环境
  if (env) {
    EnvConfig(Env.DEV);
  } else {
    EnvConfig(Env.PROD);
  }
  // App.miniProgramType = WXMiniProgramType.TEST;
  initSentryAndApp();
}
